module.exports = {
	devServer: {
		proxy: {
			'/api': {
				target: 'http://vt.ossjk.com',
				ws: true,
				changeOrigin: true, //允许跨域
				pathRewrite: { //重构
					'^/api': ''
				}

			}
		}
	},
	css: {
		loaderOptions: {
			css: {},
			postcss: {
				plugins: [
					require('postcss-px2rem')({
						remUnit: 37.5
					})
				]
			}
		}
	}
}
